PROGRAM = yasc
SRC = src
OBJECTS = $(shell find $(SRC) -name '*.cpp' | sed 's/.cpp/.o/')

CPPFLAGS = -g -O2 -fopenmp -Wall -Wextra -Werror
LIBS = -lgomp

all:    $(PROGRAM)

$(PROGRAM):	$(OBJECTS)
	$(CXX) -o $(PROGRAM) $(OBJECTS) $(LIBS)

clean:
	$(RM) $(SRC)/*.o $(PROGRAM)
